# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Newbyte <newbie13xd@gmail.com>
pkgname=libgweather4
pkgver=4.0.0
pkgrel=0
pkgdesc="GNOME weather library"
url="https://wiki.gnome.org/Projects/LibGWeather"
arch="all"
license="LGPL-2.1-or-later"
depends="tzdata gsettings-desktop-schemas"
makedepends="
	geocode-glib-dev
	gi-docgen
	glib-dev
	gobject-introspection-dev
	libsoup-dev
	libxml2-dev
	meson
	py3-gobject3
	ttf-cantarell
	vala
	"
options="!check" # Fail due to musl locale support
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/libgweather/${pkgver%.*}/libgweather-$pkgver.tar.xz"
builddir="$srcdir/libgweather-$pkgver"

build() {
	abuild-meson \
		-Dgtk_doc=true \
		-Denable_vala=true \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}


sha512sums="
1441b8996a53b277e9453d3fcf32448800c963f40c32542f9055362bc3188dcf2e706466133d53b3f1b6343dc97b15cf5eabe16b950e7c9451cb79eeef87a9c3  libgweather-4.0.0.tar.xz
"
